package com.bilibili.juc.jol;

import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.vm.VM;

/**
 * @author zuife
 * @description
 * @since 2024-05-11 11:38:45
 */
public class JOLDemo {
    public static void main(String[] args) {
        //Object o = new Object();
        Customer o = new Customer();
        System.out.println(ClassLayout.parseInstance(o).toPrintable());
        System.out.println(VM.current().objectAlignment());
    }
}

class Customer {

    int id;
    boolean flag = false;
}
